package IO;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2024-08-27
 * Time: 14:40
 */
public class Demo8 {
    public static void main(String[] args) {
        try(Writer writer = new FileWriter("./text.txt")) {
            writer.write("成为厉害的程序员");
        }catch (IOException e) {
            e.printStackTrace();
        }
    }
}
